package com.example.village.entity;

import com.example.village.entityVO.UserRegisterVO;

public class UserEntity {

    private Integer id;

    private String username;

    private String phone;

    private String password;

    private String name;

    private String idCard;

    private Integer nId;

    private Integer isSubscribe;

    private Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getIsSubscribe() {
        return isSubscribe;
    }

    public void setIsSubscribe(Integer isSubscribe) {
        this.isSubscribe = isSubscribe;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getnId() {
        return nId;
    }

    public void setnId(Integer nId) {
        this.nId = nId;
    }

    public UserEntity() {
    }

    public UserEntity(UserRegisterVO vo) {
        this.username = vo.getUsername();
        this.phone = vo.getPhone();
        this.password = vo.getPassword();
        this.name = vo.getName();
        this.idCard = vo.getIdCard();
        this.nId = vo.getnId();
    }
}
